package com.codewerkz.util;

public class Utils {
	
	public static boolean intToBool(Integer integer)
	{
		switch ( integer )
		{
			case 0:
				return (boolean) false;
			case 1:
				return (boolean) true;
			default:
				return (boolean) false;
		}
	}
	
	public static Integer boolToInt(boolean bool)
	{
		if(bool)
		{
			return (Integer) 1;
		}
		else
		{
			return (Integer) 0;
		}
	}
	
	public static long intToLong(int integer)
	{
		String str = Integer.toString(integer);
		return Long.parseLong(str);
	}

}
